home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / progjour / 1991 / 06 / alib / exit.asm < prev    next >
Assembly Source File  |  1991-08-23  |  427b  |  36 lines

  1.     include    asm.inc
  2.  
  3.     public    exit
  4.     public    exit_with_failure
  5.     public    exit_with_success
  6.  
  7.     .code
  8.     extn    ms_dos
  9.  
  10. ;;    exit with failure
  11. ;
  12. exit_with_failure proc
  13.     mov    al,EXIT_FAILURE
  14.     jmp    exit
  15. exit_with_failure endp
  16.  
  17.  
  18. ;;    exit with success
  19. ;
  20. exit_with_success proc
  21.     mov    al,EXIT_SUCCESS
  22.     jmp    exit
  23. exit_with_success endp
  24.  
  25.  
  26. ;;    exit
  27. ;
  28. ;    entry    AL    exit code
  29. ;
  30. exit proc
  31.     mov    ah,4Ch
  32.     jmp    ms_dos
  33. exit endp
  34.  
  35.     end
  36.